package com.netease.web.service.impl;

import javax.annotation.Resource;

import com.netease.web.dao.PersonDao;
import com.netease.web.pojo.Person;
import com.netease.web.service.personService;

public class personServiceImpl implements personService {

	@Resource
	PersonDao personDao;
	
	@Override
	public Person getPersonByUserName(String userName) {
		return personDao.selectPersonByUserName(userName);
	}
	
	@Override
	public Person getPersonById(int id) {
		return personDao.selectPersonById(id);
	}

}
